package cn.itsource.pethome.user.mapper;

import cn.itsource.pethome.Basic.mapper.BaseMapper;
import cn.itsource.pethome.user.domain.User;

public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过电话号码查询用户
     * @param phone 电话号码
     * @return
     */
    User checkPhone(String phone);

    /**
     * 保存注册数据
     * @param user
     */
    void save(User user);

    /**
     * 通过用户查询
     * @param username
     * @return
     */
    User findByUsername(String username);
}
